package cn.hairui.blog.service;

import cn.hairui.blog.dao.AlbumMapper;
import cn.hairui.blog.entity.Album;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 相册表 服务实现类
 * </p>
 *
 * @author laoganbu
 * @since 2020-04-15
 */
@Service
public class AlbumServiceImpl extends ServiceImpl<AlbumMapper, Album> implements AlbumService {

    @Autowired
    private AlbumMapper albumMapper;

    @Override
    public List<Map> listMgr() {
        return albumMapper.listMgr();
    }

    @Override
    public int getImagesCount(int albumId) {
        return albumMapper.getImagesCount(albumId);
    }
}
